package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `json:"account"`
	Password string `json:"password"`
	Lv       string `json:"lv"`
	Duration int64  `gorm:"type:int" json:"duration"`
}
type Combo struct {
	gorm.Model
	Name     string  `gorm:"type:varchar(30)" json:"name"`
	Price    float64 `gorm:"type:decimal(10,2)" json:"price"`
	Duration int64   `gorm:"type:int" json:"duration"`
}

type RechargeLog struct {
	gorm.Model
	UserId  int64   `json:"userId"`
	Name    string  `json:"name"`
	Price   float64 `json:"price"`
	OrderSn string  `json:"orderSn"`
}

type Order struct {
	gorm.Model
	UserId  int64   `json:"userId"`
	ComboId int64   `json:"comboId"`
	Amount  float64 `json:"amount"`
	OrderSn string  `json:"orderSn"`
	Url     string  `json:"url"`
	Status  int64   `json:"status"`
}
